package com.elinshaw.a.overlay

import scala.collection.mutable.ArrayBuffer

class BasicIntQueue extends IntQueue {

  private val buffer = new ArrayBuffer[Int]

  override def get() = buffer.remove(0)

  override def put(x: Int) = {
    buffer += x
  }

}
